package com.java1412.service.impl;

import com.java1412.dao.PaymentMapper;
import com.java1412.entity.Payment;
import com.java1412.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author java1412
 * @create 2021-12-08 16:55
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource   //@Autowired也可以
    private PaymentMapper paymentMapper;

    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
